package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.alibaba.fastjson.annotation.JSONField;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.math.BigDecimal;
import org.locationtech.jts.geom.Geometry;
import lombok.Data;
import cn.topevery.garden.entity.serializer.GeometrySerializer;

/**
 * 操作规范、应急预案、安全教育
 */
@Data
@DbTable(tableName = "t_note_info")
public class NoteInfo extends BaseEntity {
        /**
     * UUID 
     */
    @DbTableField(columnName = "c_main_id", dbType = DbTypeEnum.VARCHAR)
    public String mainId ;

    /**
     * 标题
     */
    @DbTableField(columnName = "c_title", dbType = DbTypeEnum.VARCHAR)
    public String title ;

    /**
     * 内容
     */
    @DbTableField(columnName = "c_content", dbType = DbTypeEnum.VARCHAR)
    public String content ;

    /**
     * 类型 11 安全生产、12设备安全  21 突发事件、22 天气异常  31 培训记录、32 安全演练记录
     */
    @DbTableField(columnName = "c_type_id", dbType = DbTypeEnum.INTEGER)
    public Integer typeId ;

    /**
     * 上传时间 
     */
    @DbTableField(columnName = "c_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime date ;

    /**
     * 排序号
     */
    @DbTableField(columnName = "c_order_num", dbType = DbTypeEnum.INTEGER)
    public Integer orderNum  = 0 ;

    /**
     * 创建人 
     */
    @DbTableField(columnName = "c_user_name", dbType = DbTypeEnum.VARCHAR)
    public String userName ;


}
